<?php

namespace App\Models\Headquarters;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * 费用类型
 */
class ExpenseType extends Model
{
    use HasFactory;
    public $timestamps = FALSE;
    protected $table = 'T_BC_ExpenseType';
    protected $fillable = ['FID', 'FName_L2', 'FNumber'];

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
    }

    public function findRowById($Id){
        return self::whereRaw('FID COLLATE Latin1_General_BIN = ?', [$Id])->first();
    }
}
